home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DJGPP
/
AECUR102.ZIP
/
contrib
/
curses
/
src
/
waddstr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-09
|
462b
|
22 lines
/*------------------------------------------------------------
*
* waddstr.c
*
* copyright (c) 1987,88,89,90 J. Alan Eldridge
*
* adds a string to a window at the current cursor position
*
*----------------------------------------------------------*/
#include "curses.h"
waddstr(win, str)
WINDOW *win;
char *str;
{
while (*str)
if (waddch(win, *str++) == ERR)
break;
return *str ? ERR : OK;
}